/**
 * @name: index.js
 * @author: win10
 * @date: 2023/11/14 15:45
 * @description：index.js
 * @update: 2023/11/14 15:45
 */
import { createRouter, createWebHashHistory } from 'vue-router'

import constantRoutes from './constantRoutes'

const routes = [...constantRoutes]
const router = createRouter({
  history: createWebHashHistory(),
  routes,
  scrollBehavior: () => ({ left: 0, top: 0 }),
})
export default router
